package com.pmcc.cj.web;

import com.pmcc.cj.service.TestService;
import com.pmcc.utils.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by tomas on 2020/10/27.
 */
@RestController()
@RequestMapping("api/v1/test")
public class TestController {
    @Autowired
    TestService testService;

    /**
     * 把区域机构的数据重置到初始状态
     * @return
     */
    @GetMapping("updateAreaAgency")
    public ResultBean updateAreaAgency(){
        return testService.updateAreaAgency();
    }
    @GetMapping("updateCustomer")
    public ResultBean updateCustomer(){
        return testService.updateCustomer();
    }
}
